package com.team11.server.controller.student;
import com.team11.server.service.IClockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("student")
@Api(tags = "学生接口")
public class StudentClockController {
    @Autowired
    private IClockService iClockService;

    @ApiOperation("考勤管理：更改考勤时间")
    @PostMapping("/getStudentClock")
    public String getStudentClock(@RequestParam("sNumber") String sNumber, String SaRealIn, String SaRealOut){
        return iClockService.getStudentClock(sNumber,SaRealIn,SaRealOut);
    }
}